package com.medusa.aps.business.modules.modeling.model.output;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * bom详情
 *
 * @author miskw
 * @date 2023/8/21
 * @describe 描述
 */
@Data
@Accessors(chain = true)
@Schema(description = "bom详情")
public class BomVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * BOM id
     */
    @Schema(description = "BOM id")
    private Integer id;
    /**
     * BOM编码
     */
    @Schema(description = "BOM 编码")
    private String bomCode;
    /**
     * BOM名称
     */
    @Schema(description = "BOM 名称")
    private String bomName;
    /**
     * 物料id
     */
    @Schema(description = "物料id")
    private Long materialId;
    /**
     * 父项物料编码
     */
    @Schema(description = "父项物料")
    private String materialCode;
    /**
     * 父项物料名称
     */
    @Schema(description = "父项物料名称")
    private String materialName;
    /**
     * 子项物料
     */
    @Schema(description = "BOM 子项物料")
    private List<BomItemVo> children;


}
